<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .swiper-container{
        width:640px;
        height:320px;
        overflow:hidden;
        /* 设置参照物 */
        position:relative;
    }
    .img-list{
        width:5000px;
        height:320px;
        display:flex;
        /* 过度效果 */
        transition:transform 0.3s
    }
    .img-list img{
        width:640px;
        height:320px;
    }
    .left,
    .right {
        position: absolute;
        top: 50%;
        /* 实现元素垂直居中 */
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        padding: 10px;
        cursor: pointer;
    }
    .left{
        left:0;
    }
    .right{
        right:0;
    }
</style>
<body>
    <div class="swiper-container">
        <div class="imgbox">
            <div class="img-list">
                <img src="https://img2.baidu.com/it/u=2367503158,2166775028&fm=26&fmt=auto&gp=0.jpg" alt="">
                <img src="https://img0.baidu.com/it/u=2346330857,638146584&fm=26&fmt=auto" alt="">
                <img src="https://img0.baidu.com/it/u=1178720984,1464721518&fm=26&fmt=auto" alt="">
            </div>
            <div class="left">向左</div>
            <div class="right">向右</div>
        </div>
    </div>
    
    <script>
        //实现轮播图
        //首先先把布局创建好
        //1、首先先创建一个大的容器叫swiper-container
        //2、容器中有存放图片的容器和存放向左向右的容器
        //3、图片引入之后就进行样式的调整

    </script>
</body>
</html>